import request from '@/utils/request'

// 查询兼职招聘列表
export function listArtEssayJob(query) {
  return request({
    url: '/art/artEssayJob/list',
    method: 'get',
    params: query
  })
}

// 查询兼职招聘详细
export function getArtEssayJob(id) {
  return request({
    url: '/art/artEssayJob/' + id,
    method: 'get'
  })
}

// 查询兼职招聘详细
export function getJobByArtId(id) {
  return request({
    url: '/art/artEssayJob/job/info/' + id,
    method: 'get'
  })
}

// 新增兼职招聘
export function addArtEssayJob(data) {
  return request({
    url: '/art/artEssayJob',
    method: 'post',
    data: data
  })
}

// 修改兼职招聘
export function updateArtEssayJob(data) {
  return request({
    url: '/art/artEssayJob',
    method: 'put',
    data: data
  })
}

// 删除兼职招聘
export function delArtEssayJob(id) {
  return request({
    url: '/art/artEssayJob/' + id,
    method: 'delete'
  })
}
